﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Xml.Linq;
using System.Text;
using System.Windows.Forms;

namespace ESJImporter
{
    public partial class OneNoteDisplay : Form
    {
        public XElement basicOneNoteData;
        public XElement extendedOneNoteData;

        public OneNoteDisplay()
        {
            InitializeComponent();
        }

        private void OneNoteDisplay_Shown(object sender, EventArgs e)
        {
            tb_OneNoteXMLView.Text = basicOneNoteData.ToString();
            cb_ShowBinaryContent.Checked = false;
        }

        private void cb_ShowBinaryContent_CheckedChanged(object sender, EventArgs e)
        {
            if (cb_ShowBinaryContent.Checked)
                tb_OneNoteXMLView.Text = extendedOneNoteData.ToString();
            else
                tb_OneNoteXMLView.Text = basicOneNoteData.ToString();

        }
    }
}
